#include "backtestengine.h"




bool BacktestEngine::run()
{
    if (m_data.isEmpty()) return false;

    m_strategy->init(m_initialBalance);

    for (const auto& candle : m_data) {
        m_strategy->onCandle(candle);
    }

    return true;
}

